<?php
	ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] . "/Common");
	include_once('SignUp.conf.php');
	
	global $DB;
	
	$arrayMonths = array(12);
	$year = 2008;
	$startDay = 1;
	$endDay = 31;
	$startHour = 0;
	$endHour = 23;
	
	foreach ($arrayMonths as $month) {
		for($daysInMonth = cal_days_in_month(CAL_GREGORIAN, $month, $year); $daysInMonth > 0; $daysInMonth--)  {
			if(($startDay <= $daysInMonth && $month == $arrayMonths[0]) || 
				($endDay >= $daysInMonth && $month == $arrayMonths[sizeof($arrayMonths)-1])||
						($month != $arrayMonths[0] && $month != sizeof($arrayMonths))) {
				$slotDateTime = $year.'-'.$month.'-'.$daysInMonth;
				for($hoursInDay = 23; $hoursInDay>=0; $hoursInDay--) {
					$slotDateTime = $year.'-'.$month.'-'.$daysInMonth;
					$slotDateTime .= " " . $hoursInDay . ":00:00";
					print "insert into signup_slots (event_id, slot_datetime) values (1000000,'".$slotDateTime."')<br>";
					$DB->query("insert into signup_slots (event_id, slot_datetime) values (1000000,'".$slotDateTime."')");
				}
			}
		}
	}
	
	

?>